package com.fruit;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * 监控中心启动类
 */
@EnableAdminServer
@EnableEurekaClient
@SpringBootApplication
public class FruitAdminServerApplication {
    private final static Logger logger = LoggerFactory.getLogger(FruitAdminServerApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(FruitAdminServerApplication.class, args);
        logger.info("监控中心服务端 启动成功");
    }
}
